/*
 * @Author: wang_jl
 * @Date: 2021-12-15 15:04:40
 * @LastEditTime: 2021-12-16 16:29:01
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \central-system\src\modules\System\Resource\api.js
 */
import request from '@/utils/request'
export function getDataScopeTreeList (data) {
  return request({
    url: '/sys-system/dataScopeTree/page',
    method: 'get',
    params: data
  })
}
export function checkUrl (data) {
  return request({
    url: data,
    method: 'get'
  })
}
export function addDataScopeTree (data) {
  return request({
    url: '/sys-system/dataScopeTree',
    method: 'post',
    data: data
  })
}
export function editDataScopeTree (data) {
  return request({
    url: '/sys-system/dataScopeTree',
    method: 'put',
    data: data
  })
}
export function deleteDataScopeTree (data) {
  return request({
    url: '/sys-system/dataScopeTree',
    method: 'delete',
    params: data
  })
}